﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MethodWorx.CMS.Services;
using MethodWorx.CMS.Plugins;

namespace MethodWorx.CMS.Workflow.RedirectTo
{
    public class RedirectToController : WorkflowConfigurationController<RedirectToConfiguration>
    {
        public RedirectToController(IdeExtension extension, WorkflowService service) 
           : base(extension, service)
       {

       }

       protected override WorkflowConfigurationStep CreateNewWorkflowConfigurationStep(Guid id, string output)
       {
           return new WorkflowConfigurationStep()
                      {
                          CanConfigure = true,
                          ComponentId = RedirectToWorkflowComponent.ComponentId,
                          Id = id,
                          ComponentConfiguration = new RedirectToConfiguration()
                      };
       }
    }
}
